package com.mmall.couplet.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.mmall.couplet.model.Pkgserver;
import com.mmall.couplet.service.PkgServerService;


@Controller
public class PkgServiceController {

	@Resource
	private PkgServerService pkgServeService;
	
	@RequestMapping("/carserver")
	public String findpkgbyId(int id, HttpServletRequest request) throws Exception{
		Pkgserver pkg = pkgServeService.selectPkgById(id);
		System.out.println(pkg.getPartnerId());
		System.out.println(pkg.getAssignUname());
		System.out.println(pkg.getPartnerTitle());
		System.out.println(pkg.getPkgName());
		return "carserver";
	}
}
